package com.uuuo.retrofit2.Converter;

/**
 * Created by JiaTao on 2018/5/11.
 * Email: 535318720@qq.com
 * Version: 1.0
 * Description:
 */
public class HttpBaseResult {

    public static final int NETWORK_ERROR = -9999;
    public static final int DATA_IS_NULL = -9998;
    public static final int PARSE_ERROR = -9997;
    public static final int NO_ERROR = 0;
    public static final int TOKEN_EXPRIED = -1;

    private int errorCode;
    private String errorMsg;

    public int getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public boolean isSuccess() {
        return errorCode == NO_ERROR;
    }
}
